package com.ybl.store.backend.dao.mapper.user;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ybl.store.backend.dto.resp.user.customer.CustomerPageRespDTO;
import com.ybl.store.backend.dao.entity.user.CustomerDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 顾客持久层
 */
public interface CustomerMapper extends BaseMapper<CustomerDO> {

    List<CustomerPageRespDTO> pageCustomer(Page<CustomerPageRespDTO> pageParam, @Param(Constants.WRAPPER) QueryWrapper<CustomerDO> queryWrapper);
}
